package PTA.javabianchengjichu2;

import java.util.Scanner;

public class ex01 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
while(sc.hasNext()) {
    int n = sc.nextInt();
    int begin = sc.nextInt();
    int end = sc.nextInt();
    StringBuilder s = new StringBuilder();
    for (int i = 0; i < n; i++) {
        s.append(i);
    }

    System.out.println(s.substring(begin,end));


}
    }
}
